<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>XenC: PTScoring Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XenC
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Open-source tool for data selection in NLP</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_p_t_scoring-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">PTScoring Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Filtering mode 4: phrase-table cross-entropy.  
 <a href="class_p_t_scoring.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="pt_scoring_8h_source.html">ptScoring.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for PTScoring:</div>
<div class="dyncontent">
<div class="center"><img src="class_p_t_scoring__inherit__graph.png" border="0" usemap="#_p_t_scoring_inherit__map" alt="Inheritance graph"/></div>
<map name="_p_t_scoring_inherit__map" id="_p_t_scoring_inherit__map">
<area shape="rect" id="node2" href="class_mode.html" title="Filtering modes interface. " alt="" coords="20,5,74,31"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for PTScoring:</div>
<div class="dyncontent">
<div class="center"><img src="class_p_t_scoring__coll__graph.png" border="0" usemap="#_p_t_scoring_coll__map" alt="Collaboration graph"/></div>
<map name="_p_t_scoring_coll__map" id="_p_t_scoring_coll__map">
<area shape="rect" id="node2" href="class_mode.html" title="Filtering modes interface. " alt="" coords="20,5,74,31"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0798b7cb2e73859da98e4dea94468a65"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_t_scoring.html#a0798b7cb2e73859da98e4dea94468a65">PTScoring</a> ()</td></tr>
<tr class="memdesc:a0798b7cb2e73859da98e4dea94468a65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a0798b7cb2e73859da98e4dea94468a65">More...</a><br /></td></tr>
<tr class="separator:a0798b7cb2e73859da98e4dea94468a65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6f0fb1802863509116389aab880ba17"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_t_scoring.html#aa6f0fb1802863509116389aab880ba17">~PTScoring</a> ()</td></tr>
<tr class="memdesc:aa6f0fb1802863509116389aab880ba17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default destructor.  <a href="#aa6f0fb1802863509116389aab880ba17">More...</a><br /></td></tr>
<tr class="separator:aa6f0fb1802863509116389aab880ba17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51b8eadcb3b7fa0264c09b3a0908f2c0"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_t_scoring.html#a51b8eadcb3b7fa0264c09b3a0908f2c0">launch</a> ()</td></tr>
<tr class="memdesc:a51b8eadcb3b7fa0264c09b3a0908f2c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function in charge of launching the filtering mode.  <a href="#a51b8eadcb3b7fa0264c09b3a0908f2c0">More...</a><br /></td></tr>
<tr class="separator:a51b8eadcb3b7fa0264c09b3a0908f2c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_mode"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_mode')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_mode.html">Mode</a></td></tr>
<tr class="memitem:a8876d05ec6622862d06880fa55c590ab inherit pub_methods_class_mode"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mode.html#a8876d05ec6622862d06880fa55c590ab">~Mode</a> ()=0</td></tr>
<tr class="memdesc:a8876d05ec6622862d06880fa55c590ab inherit pub_methods_class_mode"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pure virtual destructor.  <a href="#a8876d05ec6622862d06880fa55c590ab">More...</a><br /></td></tr>
<tr class="separator:a8876d05ec6622862d06880fa55c590ab inherit pub_methods_class_mode"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_static_methods_class_mode"><td colspan="2" onclick="javascript:toggleInherit('pro_static_methods_class_mode')"><img src="closed.png" alt="-"/>&#160;Static Protected Member Functions inherited from <a class="el" href="class_mode.html">Mode</a></td></tr>
<tr class="memitem:a4f9db1a2844c3f9be520c2882446443a inherit pro_static_methods_class_mode"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mode.html#a4f9db1a2844c3f9be520c2882446443a">findSampleSize</a> (boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt; idCorp, boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt; oodCorp)</td></tr>
<tr class="memdesc:a4f9db1a2844c3f9be520c2882446443a inherit pro_static_methods_class_mode"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds the optimal sample size for the OOD <a class="el" href="class_corpus.html" title="Corpus-related functionalities. ">Corpus</a>.  <a href="#a4f9db1a2844c3f9be520c2882446443a">More...</a><br /></td></tr>
<tr class="separator:a4f9db1a2844c3f9be520c2882446443a inherit pro_static_methods_class_mode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08d61f2bf10a36780a805fd64f43886d inherit pro_static_methods_class_mode"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_corpus.html">Corpus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mode.html#a08d61f2bf10a36780a805fd64f43886d">extractSample</a> (boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt; ptrCorp, int sSize, bool mean)</td></tr>
<tr class="memdesc:a08d61f2bf10a36780a805fd64f43886d inherit pro_static_methods_class_mode"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extracts a random sample from a give <a class="el" href="class_corpus.html" title="Corpus-related functionalities. ">Corpus</a>.  <a href="#a08d61f2bf10a36780a805fd64f43886d">More...</a><br /></td></tr>
<tr class="separator:a08d61f2bf10a36780a805fd64f43886d inherit pro_static_methods_class_mode"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Filtering mode 4: phrase-table cross-entropy. </p>
<p>This class derived from <a class="el" href="class_mode.html" title="Filtering modes interface. ">Mode</a> handles the fourth filtering mode: phrase-table cross-entropy &ndash; WARNING: experimental </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a0798b7cb2e73859da98e4dea94468a65"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PTScoring::PTScoring </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>

</div>
</div>
<a class="anchor" id="aa6f0fb1802863509116389aab880ba17"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PTScoring::~PTScoring </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a51b8eadcb3b7fa0264c09b3a0908f2c0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int PTScoring::launch </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Function in charge of launching the filtering mode. </p>
<dl class="section return"><dt>Returns</dt><dd>0 if the filtering succeeds </dd></dl>

<p>Implements <a class="el" href="class_mode.html#af43f7539ee52f4ffa38e532fa1144ef2">Mode</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_p_t_scoring_a51b8eadcb3b7fa0264c09b3a0908f2c0_cgraph.png" border="0" usemap="#class_p_t_scoring_a51b8eadcb3b7fa0264c09b3a0908f2c0_cgraph" alt=""/></div>
<map name="class_p_t_scoring_a51b8eadcb3b7fa0264c09b3a0908f2c0_cgraph" id="class_p_t_scoring_a51b8eadcb3b7fa0264c09b3a0908f2c0_cgraph">
<area shape="rect" id="node2" href="class_xen_option.html#a97ad096aee729b4d8ae993b1381d4eec" title="Accessor to the instance of the singleton XenOption object. " alt="" coords="442,5,602,31"/>
<area shape="rect" id="node3" href="class_static_data.html#a3cc0816b2220ee3f827cdd00971e010d" title="Accessor to the instance of the singleton StaticData object. " alt="" coords="201,305,361,331"/>
<area shape="rect" id="node4" href="class_static_data.html#a0a84fa1648aed88951cf2870a9f39b4d" title="Accessor to the vocabularies. " alt="" coords="205,355,357,380"/>
<area shape="rect" id="node5" href="class_xen_option.html#a74178ef5302c1bf213822ae474c58806" title="Accessor to the source language vocabulary file. " alt="" coords="203,404,359,429"/>
<area shape="rect" id="node6" href="class_xen_option.html#aa38a1233cc2bcd024964fbc54d5abe5e" title="Accessor to the target language vocabulary file. " alt="" coords="203,453,359,479"/>
<area shape="rect" id="node7" href="class_static_data.html#a9ee9e79863b9c59329eca4de52d9e922" title="Accessor to the phrase&#45;tables. " alt="" coords="203,503,359,528"/>
<area shape="rect" id="node8" href="class_xen_option.html#a76d6e094092486278bd7f7714d54a3b9" title="Accessor to the in&#45;domain phrase&#45;table file. " alt="" coords="200,552,362,577"/>
<area shape="rect" id="node9" href="class_xen_option.html#a5e3d99b1c17f5dc609344c7918335d23" title="Accessor to the out&#45;of&#45;domain phrase&#45;table file. " alt="" coords="195,601,367,627"/>
<area shape="rect" id="node10" href="class_static_data.html#a60a4636843c37cbb31780ec4d185a06d" title="Accessor to the source language Corpus Pair. " alt="" coords="188,651,374,676"/>
<area shape="rect" id="node11" href="class_xen_i_o.html#addbb2a484ad95b288569048af23bd70e" title="Writes a phrase&#45;table&#39;s source phrases. " alt="" coords="188,700,374,725"/>
<area shape="rect" id="node12" href="class_xen_option.html#a9886771703c5b8866be587f50193ac9d" title="Accessor to the source language. " alt="" coords="207,749,355,775"/>
<area shape="rect" id="node13" href="class_static_data.html#a9724b144aa1153213b07d3dd2a8eb8f4" title="Accessor to the target language Corpus. " alt="" coords="190,799,372,824"/>
<area shape="rect" id="node14" href="class_xen_i_o.html#a8c440586a535369a714351601f253477" title="Writes a phrase&#45;table&#39;s target phrases. " alt="" coords="191,848,371,873"/>
<area shape="rect" id="node15" href="class_xen_option.html#aaaec9eadf81b57f24f4833be2ff2350a" title="Accessor to the target language. " alt="" coords="207,897,355,923"/>
<area shape="rect" id="node16" href="class_static_data.html#a3104f8fe8394b6456f12f8ddca6a3f07" title="Accessor to the source language models. " alt="" coords="193,947,369,972"/>
<area shape="rect" id="node17" href="class_static_data.html#aef3249073b82399cc35d243c4ac5d63c" title="Accessor to the target language models. " alt="" coords="195,996,367,1021"/>
<area shape="rect" id="node18" href="class_static_data.html#a292e282fda19f6ee5d7fc770c66f4ddc" title="Accessor to the source language PPL objects. " alt="" coords="190,1045,372,1071"/>
<area shape="rect" id="node19" href="class_static_data.html#affcc848e67faaf5f649295724e4c59c0" title="Accessor to the target language PPL objects. " alt="" coords="192,1095,370,1120"/>
<area shape="rect" id="node20" href="class_xen_option.html#a9eb5309135ec46b588dcc98c196303ea" title="Accessor to the weights file. " alt="" coords="209,1144,353,1169"/>
<area shape="rect" id="node21" href="class_static_data.html#a629e38d09dd808708b0be118b7f9a6d0" title="Accessor to the weights file. " alt="" coords="192,1193,370,1219"/>
<area shape="rect" id="node22" href="class_static_data.html#a0209ea694e46c5eb62e68a17b7eca7d1" title="Accessor to the ScoreHolder object. " alt="" coords="205,1243,357,1268"/>
<area shape="rect" id="node23" href="class_xen_option.html#a0fa3ea5f0f0cfed980710a9cf73917d9" title="Accessor to the local score for phrase&#45;table scoring execution state. " alt="" coords="451,55,593,80"/>
<area shape="rect" id="node24" href="class_source_phrase.html#a1d21a7401aec2170e1495a9891505f27" title="Accessor to the size of the target phrases associated to the source phrase. " alt="" coords="184,1292,378,1317"/>
<area shape="rect" id="node25" href="class_source_phrase.html#aac3e475efcc4c258024a8aee5dc45f6d" title="Accessor to the vector of cross&#45;entropy scores for the target phrases. " alt="" coords="426,252,617,277"/>
<area shape="rect" id="node26" href="namespace_xen_common.html#ad4f4868634e46d6ee82e57d343a77abe" title="Template converting a value into a string with a precision of 20. " alt="" coords="446,301,598,327"/>
<area shape="rect" id="node27" href="class_xen_i_o.html#a6c32040f72b5d39ead7b08874beb65a3" title="Writes a new rescored phrase&#45;table. " alt="" coords="212,153,350,179"/>
<area shape="rect" id="node28" href="class_score.html#ab8c94c90380d2e17d16d311d298f997c" title="Adds a score to the vector of doubles. " alt="" coords="462,104,582,129"/>
<area shape="rect" id="node29" href="class_xen_option.html#a6b020f1c16f0e0699a5ea7e06a0f593d" title="Accessor to the output name for the filtered files. " alt="" coords="438,153,606,179"/>
<area shape="rect" id="node30" href="class_score.html#a6933beacc22a83a62181fea9c04a76e3" title="Accessor to the nth score. " alt="" coords="463,203,580,228"/>
</map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/modes/<a class="el" href="pt_scoring_8h_source.html">ptScoring.h</a></li>
<li>src/modes/<a class="el" href="pt_scoring_8cpp.html">ptScoring.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 18 2016 17:22:37 for XenC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
